/*
  Copyright � 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  ThanhNam ERP Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using VINETLIFE.DAL;
using VINETLIFE.DO;
/// <summary>
/// Summary description for cmsLogAccountBL
/// </summary>
namespace VINETLIFE.BL 
{
    public class cmsLogAccountBL 
    {
    	#region Private Variables
		cmsLogAccountDAL objcmsLogAccountDAL;
		#endregion
		
        #region Public Constructors
        public cmsLogAccountBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsLogAccountDAL=new cmsLogAccountDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsLogAccountDO objcmsLogAccountDO)
        {
            return objcmsLogAccountDAL.Insert(objcmsLogAccountDO);
        }

        public int Update(cmsLogAccountDO objcmsLogAccountDO)
        {
             return objcmsLogAccountDAL.Update(objcmsLogAccountDO);

        }

        public int Delete(cmsLogAccountDO objcmsLogAccountDO)
        {
             return objcmsLogAccountDAL.Delete(objcmsLogAccountDO);

        }

         public int DeleteAll()
        {
             return objcmsLogAccountDAL.DeleteAll();
        }

        public cmsLogAccountDO Select(cmsLogAccountDO objcmsLogAccountDO)
        {
            return objcmsLogAccountDAL.Select(objcmsLogAccountDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsLogAccountDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsLogAccountDAL.SelectAll();
        }
        public DataTable SelectHistory(int accountId, string type, DateTime searchDate, DateTime fromDate, DateTime toDate, string logAccountPaymentCode)
        {
            return objcmsLogAccountDAL.SelectHistory(accountId, type, searchDate, fromDate, toDate, logAccountPaymentCode);
        }
      
        public DataTable GetByAccountId(int accountId)
        {
            return objcmsLogAccountDAL.GetByAccountId(accountId);
        }
     
#endregion          
    
    }

}
